package com.pzh.logistics.service;

import com.pzh.logistics.mbg.model.Address;

import java.util.List;

public interface AddressService {

    Address add(Address address);

    boolean delAddress(Integer addressId, Integer userId);

    Address updateByAddressIdAndUserId(Address address, Integer userId);

    List<Address> findByUserId(Integer userId);

    Address findByAddressId(Integer addressId);

    Address findByAddressAndUserId(Integer addressId, Integer userId);
}
